package cn.wolfcode.luowowo.article.service.impl;


import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.domain.DestinationScreening;
import cn.wolfcode.luowowo.article.mapper.DestinationMapper;
import cn.wolfcode.luowowo.article.mapper.DestinationScreeningMapper;
import cn.wolfcode.luowowo.article.query.DestinationScreeningQuery;
import cn.wolfcode.luowowo.article.service.IDestinationScreeningService;
import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class DestinationScreeningImpl implements IDestinationScreeningService {

    @Autowired
    private DestinationScreeningMapper destinationScreeningMapper;

    @Override
    public List<DestinationScreening> queryDest(Long monthId) {
        return destinationScreeningMapper.findDestByMonthId(monthId);
    }

    @Override
    public List<DestinationScreening> queryTheme(Long category) {
        return destinationScreeningMapper.findThemeByCategory(category);
    }

    @Override
    public List<DestinationScreening> query(DestinationScreeningQuery qo) {
        return destinationScreeningMapper.findDestByScreening(qo);
    }
}
